<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
		body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
		#panorama {width:100%; height: 650px;}
		#result {width:100%;font-size:12px;}
	</style>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9AlAeUKHQtS2WcsKTdhlKF1j"></script>
	<title>获取指定的全景图</title>
</head>
<body>
	<div id="panorama"></div>
</body>
</html>
<script type="text/javascript"> 
	var map = new BMap.Map('panorama');
	var beginnodel = '<%=request.getParameter("beginnodel")%>';
	var beginnodeb = '<%=request.getParameter("beginnodeb")%>';
	map.centerAndZoom(new BMap.Point(beginnodel, beginnodeb), 12);
	map.addTileLayer(new BMap.PanoramaCoverageLayer());

	var panorama = new BMap.Panorama('panorama'); 
	panorama.setPov({heading: -40, pitch: 6});
	panorama.setPosition(new BMap.Point(beginnodel, beginnodeb));
</script>


